package com.ssh.manager;

import java.util.List;
import java.util.Map;

import com.ssh.common.util.Page;
import com.ssh.entity.Employee;

public interface EmployeeManager {
	public Employee login(String userName);
	
	/**
	 * 分页查询
	 * @param conditionMap
	 * @param page
	 * @param isDesc
	 */
	public void findListByPage(Map conditionMap, Page page, String isDesc);
	
	/**
	 * 保存或修改
	 * @param employee
	 * @return
	 */
	public Employee saveUpdate(Employee employee);
	
	/**
	 * 取出全部业务员
	 * @return
	 */
	public List<Employee> getAll();
	
	/**
	 * 根据ID取出实体
	 * @param id
	 * @return
	 */
	public Employee getById(Long id);
	
	public List<Employee> getAllByPid(Long pid);
	
	public List<Employee> getAllByEid(Long eid);
}
